package com.leyou.item.mapper;

import com.leyou.common.pojo.PageResult;
import com.leyou.item.pojo.Brand;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * 商品数据访问层
 */
public interface IBrandMapper extends Mapper<Brand> {

    /**
     * 新增品牌分类和品牌分类中间表
     * @param cid
     * @param bid
     * @return
     */
    @Insert("insert into tb_category_brand(category_id,brand_id) values(#{cid},#{bid})")
    int insertBrandAndCategoryBrand(@Param("cid")Long cid,@Param("bid")Long bid);
}
